package cn.lcl.basic.test;

import java.util.Iterator;
import java.util.List;

public class PrintUtil {
	public static void printArray(Object[] objList){
		System.out.println("\n[");
		for(Object o:objList){
			System.out.println(o);
		}
		System.out.println("]\n");
	}
	
	public static void printList(List list){
		Iterator iter=list.iterator();
		System.out.println("\n[");
		while(iter.hasNext()){
			Object obj=iter.next();
			System.out.println(obj);
		}
		System.out.println("]\n");
	}
}
